// Check if we are on a YouTube channel page
export function isYouTubeChannelPage(): boolean {
  return window.location.hostname === 'www.youtube.com' && 
         (window.location.pathname.startsWith('/@') || 
         window.location.pathname.startsWith('/channel/'))
}

// 获取 youtube 的频道ID
export function getChannelIdFromUrl(): string | null {
  const url = new URL(window.location.href)
  const channelId = url.pathname.split('/').pop()
  return channelId || null
}

